home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9207.ARJ
/
1007054B
< prev
next >
Wrap
Text File
|
1992-06-03
|
221b
|
18 lines
#include <iostream.h>
int main()
{
double d;
double total = 0;
int n = 0;
while (cin >> d)
{
cout << d << '\n';
total += d;
++n;
}
cout << "average = " << total/n << '\n';
return 0;
}